package ifswitch;

import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        int price = 600;
        Scanner sc = new Scanner(System.in);
        System.out.println("我支付的金额：");
        int paymoney = sc.nextInt();
        if (paymoney >=  price){
            System.out.println("购物成功");
        }else{
            System.out.println("购物失败！");
        }
    }

}
